package com.toshiba.adapter;

import android.view.View;

/**
 * Created by lenovo on 2016/10/16.
 */

public class WidgetListener {
    public int id;
    public OnWidgetClickListener onWidgetClickListener;
    public OnWidgetLongClickListener onWidgetLongClickListener;

    public WidgetListener(int id, OnWidgetClickListener onWidgetClickListener, OnWidgetLongClickListener onWidgetLongClickListener) {
        this.id = id;
        this.onWidgetClickListener = onWidgetClickListener;
        this.onWidgetLongClickListener = onWidgetLongClickListener;
    }

    public interface OnWidgetClickListener {
        public void onWidgetClick(View view, int position);
    }
    public interface OnWidgetLongClickListener {
        public void onWidgetLongClick(View view, int position);
    }
}
